/*
 * ConsoleFrame.java
 *
 * Created on 6 mars 2009, 17:53:55
 */
package ncorps.output;

import javax.swing.JTextArea;
import javax.swing.JTextField;

/**
 *
 * @author Gilles
 */
public class ConsoleFrame extends javax.swing.JFrame {

    /** Creates new form ConsoleFrame */
    public ConsoleFrame() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        sortietext = new javax.swing.JTextArea();
        close = new javax.swing.JButton();
        timefield = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Evénements");
        setAlwaysOnTop(true);
        setResizable(false);

        sortietext.setColumns(15);
        sortietext.setEditable(false);
        sortietext.setRows(10);
        sortietext.setTabSize(15);
        jScrollPane1.setViewportView(sortietext);

        getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);

        close.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        close.setText("Fermer");
        close.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                closeActionPerformed(evt);
            }
        });
        getContentPane().add(close, java.awt.BorderLayout.PAGE_END);
        getContentPane().add(timefield, java.awt.BorderLayout.PAGE_START);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-317)/2, (screenSize.height-387)/2, 317, 387);
    }// </editor-fold>//GEN-END:initComponents

    private void closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeActionPerformed
        this.dispose();
}//GEN-LAST:event_closeActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton close;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea sortietext;
    private javax.swing.JTextField timefield;
    // End of variables declaration//GEN-END:variables

    public JTextArea getSortietext() {
        return sortietext;
    }

    public JTextField getTimefield() {
        return timefield;
    }

}
